﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace UnionManager.Models
{
    public class DAOFactory
    {
        //private de khong tao duoc cac thuc the lop ma chi su dung cac ham tinh cua lop
        private DAOFactory()
        {
        }

        public static BaseModel getDAO(string classname)
        {
            BaseModel rs = (BaseModel)Activator.CreateInstance(Type.GetType("UnionManager.Models."+classname));
            return rs;
        }


        
    }
}